<div class="box_right">
	<h1>
		油站结算概况
	</h1>
	<style>
    
    </style>
    <div style="overflow:hidden;">
    <form method="get" action="">
            	<label class="layui-form-label" style="width: 110px; float: left;">结算日期</label>
			    
			    	<input style="float:left; width:100px;" type="text" name="date1" class="layui-input" id="test1" placeholder="年-月-日" value="<?php if (isset($date1)){echo $date1;}?>"><span style="float:left; height:38px; line-height:35px;">到</span>
                    <input style="float:left; width:100px;" type="text" name="date2" class="layui-input" id="test2" placeholder="年-月-日" value="<?php if (isset($date2)){echo $date2;}?>">
                    <button class="btn_tj" type="submit">查询</button>
			    </form>
     </div>
	<div class="pro_box layui-form" style="overflow:hidden;">
    
		<div style="float:left; margin-left:20px;">
        	
        	<table width="200" border="0" class="layui-table ct" lay-skin="line">
              <tr>
                <th colspan="2" align="center" scope="row" style="background:#F18101; color:#FFF;">中海日升黄务加油站

</th>
              </tr>
              <tr>
                <th scope="row">结算日期：</th>
                <td><?php echo $date1;?><br /><?php echo $date2;?></td>
              </tr>
              <tr>
                <th scope="row">机显总额：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['order_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">营销费用：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['yx_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">优惠券费用：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['coupon_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">折后金额：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['zhe_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">服务费：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['service_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">转账金额：</th>
                <td><?php if(!empty($rs1)):?><?php echo $rs1['real_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
            </table>

        </div>
        
        <div style="float:left; margin-left:20px;">
        	<table width="200" border="0" class="layui-table ct" lay-skin="line">
              <tr>
                <th colspan="2" align="center" scope="row" style="background:#F18101; color:#FFF;">中海日升开发区加油站

</th>
              </tr>
              <tr>
                <th scope="row">结算日期：</th>
                <td><?php echo $date1;?><br /><?php echo $date2;?></td>
              </tr>
              <tr>
                <th scope="row">机显总额：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['order_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">营销费用：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['yx_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">优惠券费用：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['coupon_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">折后金额：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['zhe_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">服务费：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['service_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
              <tr>
                <th scope="row">转账金额：</th>
                <td><?php if(!empty($rs2)):?><?php echo $rs2['real_price'];?><?php else:?>待结算<?php endif;?></td>
              </tr>
            </table>

        </div>
        
        
  </div>
</div>
<script>

//Demo
layui.use(['form','element','laydate'], function(){
	var form = layui.form,
  	element = layui.element,
  	laydate = layui.laydate;

  //时间选择器
  laydate.render({
    elem: '#test1'
  });
  //时间选择器
  laydate.render({
    elem: '#test2'
  });
});
</script>